package com.ruoyi.finance.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 凭证模板对象 t_voucher_template
 *
 * @author ruoyi
 * @date 2025-02-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_voucher_template")
public class TVoucherTemplate
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    @Excel(name = "模板ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 模板名称 */
    @Excel(name = "模板名称")
    @NotNull(message = "模板名称不能为空")
    private String name;

    /** 模板类型ID */
    @Excel(name = "模板类型ID")
    @NotNull(message = "模板类型不能为空")
    private Long typeId;

    /** 凭证字ID */
    @Excel(name = "凭证字ID")
    @NotNull(message = "凭证字不能为空")
    private Long wordId;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateId;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableField(fill = FieldFill.INSERT)
    private Long deletedType;

    /** 版本号 */
    @TableField(fill = FieldFill.INSERT)
    private Long bbNumber;

    /** 凭证模板明细信息 */
    @TableField(exist = false)
    private List<TVoucherTemplateDetail> detailList;

    @TableField(exist = false)
    private String vttName;
    @TableField(exist = false)
    private String vwName;
    @TableField(exist = false)
    private String subName;
    @TableField(exist = false)
    private String absName;
    @TableField(exist = false)
    private String fxType;
    @TableField(exist = false)
    private String debitiAmount;
    @TableField(exist = false)
    private String creditAmount;

}
